package com.linkvin.ec.hcs.service.mdm;

import com.baomidou.mybatisplus.plugins.Page;
import com.linkvin.ec.hcs.dao.model.mdm.Department;
import com.linkvin.ec.hcs.dao.model.mdm.bo.DepartmentBo;

import java.util.List;

public interface DepartmentService {

    /***
     * 分页查询部门
     * @param departmentBO
     * @return
     */
    Page<DepartmentBo> queryPageDepartment(Page<DepartmentBo> departmentBO);

    /***
     * 添加部门
     * @param department
     * @return
     */
    DepartmentBo addDepartment(Department department);

    /**
     * 修改部门
     * @param department
     * @return
     */
    DepartmentBo updateDepartment(Department department);

    /**
     * 删除部门
     * @param department
     * @return
     */
    int deleteDepartments(List<Integer> departmentIds);
}
